<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>EShopManager</title>
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">


<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/static/lib/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/stylesheets/theme.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/lib/font-awesome/css/font-awesome.css" />
<script src="${pageContext.request.contextPath}/static/lib/jquery-1.8.1.min.js" type="text/javascript"></script>
	<script src="${pageContext.request.contextPath}/static/lib/vue.js" type="text/javascript"></script>

<!-- Demo page code -->

<style type="text/css">
#line-chart {
	height: 300px;
	width: 800px;
	margin: 0px auto;
	margin-top: 1em;
}

.brand {
	font-family: georgia, serif;
}

.brand .first {
	color: #ccc;
	font-style: italic;
}

.brand .second {
	color: #fff;
	font-weight: bold;
}
</style>

	<script type="text/javascript">
    	
	    /**全选、全不选**/
	    $(function() {
	  	  $("#all_ck").change(function(){
	  		  if ($(this).is(':checked')) {//全选
	  			  $("[name=ck]:checkbox").each(function(){
	  				  this.checked=true;
	  			  		//$(this).attr("checked",true);
	  			  });
	  		  }else{//全不选
	  			  $("[name=ck]:checkbox").each(function(){
	  				  this.checked=false;
	  			  		//$(this).attr("checked",false);
	  			  });
	  		  } 
	  		  
	  		});
	  	  	
	  	});
    
    </script>
	
</head>
<body>


<%--导入头部页面--%>
<c:import url="../top.jsp"></c:import>
<%--导入左边菜单栏页面--%>
<c:import url="../left.jsp"></c:import>



	<div id="man">
	<div class="content">
		<div class="header">
			<h1 class="page-title">图书管理</h1>
		</div>

		<ul class="breadcrumb">
			<li><a href="bookmanager.jsp">图书管理</a> <span class="divider">/</span></li>
			<li class="active">查看图书信息</li>
		</ul>

		<div class="container-fluid">
			<div class="row-fluid">

				<div class="block">
					<a href="#page-filter" class="block-heading" data-toggle="collapse">筛选</a>
					<div id="page-filter" class="block-body collapse in">
						<div class="search-well">
							<form  class="form-inline" role="search"
								action="books/query.action" method="post">
								<input type="text" class="form-control" placeholder="请输入书名"
										name="book_name" value="" /> 
								<input type="text" class="form-control"
										placeholder="请输入作者" name="book_author" value="" /> 
										
								
								
								
								
									
								
								
								
								
								<select class="form-control" name="status">
									<option value="-1" selected='selected'>--请选择--</option>
									<option value="1" >上架</option>
									<option value="0" >下架</option>
								</select>
								
								<select class="form-control" name="type_id">
									<option value="-1" selected='selected'>--请选择分类--</option>
									<option value="1">文学馆</option>
								</select>
								<button type="submit" class="btn btn-default"><i class="icon-search"></i> 查询</button>

							</form>
						</div>
					</div>
				</div>
			</div>

			<div class="row-fluid">
				
						<span>共有 <b>43</b> 条记录</span>
						
						<div class="well">
							<div class="search-well">
				                <form class="form-inline" action="#">
				                    <select name="control">
										<option value="" selected="selected">--请选择--</option>
										<option value="garbage">回收站</option>
										<option value="status1">上架</option>
										<option value="status0">下架</option>
										<option value="is_new1">新品</option>
										<option value="is_new0">取消新品</option>
										<option value="is_hot1">热卖</option>
										<option value="is_hot0">取消热卖</option>
									</select>
				                    <button id="btnUpdate" class="btn" type="button"><i class="icon-legal"></i> 操作</button>
				                </form>
            				</div>
						
							
							<table class="table">
								<thead>
									<tr id="theTableTitle">
										<th>
											<input type="checkbox" id="all_ck"  />
											编号
										</th>
										<th>书名</th>
										<th>价格</th>
										<th>上架</th>
										<th>新品</th>
										<th>热销</th>
										<th>作者</th>
										<th>所属分类</th>
										<th>库存</th>
										<th>操作</th>
									</tr>
								</thead>
								
								<tbody>


<%--										<tr v-for="(bookinfo,i) in bookArray" :key="i">--%>
<%--											<td>--%>
<%--												<input type="checkbox" id="ck" name="ck" :value="bookinfo.book_id" />--%>
<%--												{{bookinfo.book_id}}--%>
<%--											</td>--%>
<%--											<td>{{bookinfo.book_name}}</td>--%>
<%--											<td>￥{{bookinfo.book_price}}</td>--%>
<%--											<td>--%>

<%--													<a href="javascript:updateIsOnline(56,0)"><img src="${pageContext.request.contextPath}/static/images/yes.gif"></a>--%>


<%--											</td>--%>
<%--											<td>--%>


<%--													<a href="javascript:updateIsNew(56,0)"><img src="${pageContext.request.contextPath}/static/images/yes.gif"></a>--%>

<%--											</td>--%>
<%--											<td>--%>


<%--													<a href="javascript:updateIsHot(56,0)"><img src="${pageContext.request.contextPath}/static/images/yes.gif"></a>--%>

<%--											</td>--%>
<%--											<td>{{bookinfo.book_author}}</td>--%>
<%--											<td>{{bookinfo.type_name}}</td>--%>
<%--											<td>{{bookinfo.store_count}}</td>--%>
<%--											<td>--%>
<%--												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=56" title="查看" target="_blank">--%>
<%--													<i class="icon-search"></i>--%>
<%--												</a>--%>
<%--												<a href="books/queryinfo/56" title="编辑"><i class="icon-pencil"></i></a>--%>
<%--	              								<a href="javascript:deleteClick(56)" title="删除"><i class="icon-remove"></i></a>--%>
<%--											</td>--%>
<%--										</tr>--%>
									
										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="55" />
												55
											</td>
											<td>大撒旦撒</td>
											<td>￥111.0</td>
											<td>

													<a href="javascript:updateIsOnline(55,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(55,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(55,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>啊啊</td>
											<td>文学馆</td>
											<td>1</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=55" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/55" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(55)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>

										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="54" />
												54
											</td>
											<td>测试</td>
											<td>￥111.0</td>
											<td>

													<a href="javascript:updateIsOnline(54,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(54,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(54,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>aa</td>
											<td>文学馆</td>
											<td>1</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=54" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/54" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(54)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>

										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="53" />
												53
											</td>
											<td>抱抱</td>
											<td>￥11.0</td>
											<td>

													<a href="javascript:updateIsOnline(53,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(53,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(53,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>三毛</td>
											<td>文学馆</td>
											<td>100</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=53" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/53" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(53)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>

										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="41" />
												41
											</td>
											<td>小王子(精) 畅销200万册 官方认证简体中文版 圣埃克苏佩里著 外国小说 世界经典名著读物</td>
											<td>￥17.6</td>
											<td>

													<a href="javascript:updateIsOnline(41,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(41,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(41,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td> (法)安托万？德？</td>
											<td>文学馆</td>
											<td>1</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=41" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/41" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(41)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>

										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="35" />
												35
											</td>
											<td>新编百姓最爱家常菜2888例（附光盘）</td>
											<td>￥37.8</td>
											<td>

													<a href="javascript:updateIsOnline(35,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(35,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(35,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>双福，朱太治 等</td>
											<td>文学馆</td>
											<td>1</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=35" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/35" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(35)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>

										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="32" />
												32
											</td>
											<td>下雨天一个人在家</td>
											<td>￥42.8</td>
											<td>

													<a href="javascript:updateIsOnline(32,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(32,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(32,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>[日] 江国香织</td>
											<td>文学馆</td>
											<td>1</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=32" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/32" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(32)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>

										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="31" />
												31
											</td>
											<td>疯狂Java讲义（第3版 附光盘）</td>
											<td>￥91.3</td>
											<td>

													<a href="javascript:updateIsOnline(31,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(31,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(31,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>李刚</td>
											<td>文学馆</td>
											<td>1</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=31" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/31" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(31)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>

										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="30" />
												30
											</td>
											<td>C语言从入门到精通（第3版）</td>
											<td>￥50.8</td>
											<td>

													<a href="javascript:updateIsOnline(30,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(30,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(30,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>明日科技</td>
											<td>文学馆</td>
											<td>1</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=30" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/30" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(30)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>

										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="29" />
												29
											</td>
											<td>深入分析Java Web技术内幕</td>
											<td>￥71.5</td>
											<td>

													<a href="javascript:updateIsOnline(29,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(29,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(29,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>许令波</td>
											<td>文学馆</td>
											<td>1</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=29" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/29" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(29)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>

										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="28" />
												28
											</td>
											<td>“笨办法”学Python</td>
											<td>￥41.0</td>
											<td>

													<a href="javascript:updateIsOnline(28,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(28,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(28,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>[美] Zed A.Shaw </td>
											<td>文学馆</td>
											<td>1</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=28" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/28" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(28)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>

										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="27" />
												27
											</td>
											<td>战天京</td>
											<td>￥37.4</td>
											<td>

													<a href="javascript:updateIsOnline(27,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(27,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(27,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>谭伯牛</td>
											<td>文学馆</td>
											<td>1</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=27" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/27" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(27)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>

										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="26" />
												26
											</td>
											<td>鱼羊野史</td>
											<td>￥241.7</td>
											<td>

													<a href="javascript:updateIsOnline(26,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(26,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(26,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>高晓松</td>
											<td>文学馆</td>
											<td>1</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=26" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/26" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(26)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>

										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="25" />
												25
											</td>
											<td>如何不在网上虚度人生 </td>
											<td>￥34.8</td>
											<td>

													<a href="javascript:updateIsOnline(25,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(25,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(25,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>北京联合出版公司</td>
											<td>文学馆</td>
											<td>1</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=25" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/25" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(25)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>

										<tr>
											<td>
												<input type="checkbox" id="ck" name="ck" value="24" />
												24
											</td>
											<td>编辑推荐</td>
											<td>￥37.8</td>
											<td>

													<a href="javascript:updateIsOnline(24,0)"><img src="static/images/yes.gif"></a>


											</td>
											<td>


													<a href="javascript:updateIsNew(24,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>


													<a href="javascript:updateIsHot(24,0)"><img src="static/images/yes.gif"></a>

											</td>
											<td>高铭 </td>
											<td>文学馆</td>
											<td>1</td>
											<td>
												<a href="http://localhost:8080/eshop_v2/productinfo.action?bookId=24" title="查看" target="_blank">
													<i class="icon-search"></i>
												</a>
												<a href="books/queryinfo/24" title="编辑"><i class="icon-pencil"></i></a>
	              								<a href="javascript:deleteClick(24)" title="删除"><i class="icon-remove"></i></a>
											</td>
										</tr>
									
								</tbody>

							</table>
						</div>
						<div class="pagination pagination myul">
							<ul>
								
									<li class='disabled'><a href="#">&laquo;首页</a></li>
									<li class='disabled'><a href="#">上一页</a></li>
								
								
								
								<li><a href="#">1</a></li>
								<li class='active'><a href="#">2</a></li>
								<li><a href="#">3</a></li>
								<li><a href="#">4</a></li>
								
								
								
									<li><a href="books/query.action?
									currentPage=2&book_name=&book_author=
									&status=">下一页</a></li>
									
									<li><a href="books/query.action?
									currentPage=3&book_name=&book_author=
									&status=">尾页&raquo;</a></li>
								
								
							</ul>
						</div>

					
				

			</div>



			<%-- 引入尾部页面 --%>
			<c:import url="../footer.jsp"></c:import>

			</div>


		</div>
	</div>



<script>

	var boy =new Vue({
		el:"#man",
		data:{
			bookArray:[]
		},
		methods:{
			//查询所有图书信息
			selectAllBook(){
				$.post("${pageContext.request.contextPath }/book/selectAllBook.do",function(boy){
					if (boy.code==200){
						boy.bookArray=boy.data;
						//console.log(boy.data)

					}
				})
			}
		},
		created(){
			//查询全部书籍信息
			this.selectAllBook()
			alert("hahhaha")
		}
	})


</script>



<%--	<script src="${pageContext.request.contextPath}/static/lib/bootstrap/js/bootstrap.js"></script>--%>
<%--	<script type="${pageContext.request.contextPath}/text/javascript" src="static/lib/tooltips.js"></script>--%>
<%--	<script type=/text/javascript">--%>
<%--		$("[rel=tooltip]").tooltip();--%>

<%--		function deleteClick(book_id) {--%>
<%--			if(confirm("你确定要移入商品回收站吗？")){--%>
<%--				show_loading();--%>
<%--				//ajax请求servlet--%>
<%--			    var url="books/trash/"+book_id;--%>

<%--				$.post(url,null,function(response){--%>
<%--					var jsonData=$.parseJSON(response);--%>
<%--					var result=jsonData.status;--%>

<%--					var responseUrl="books/query.action";--%>
<%--					if(result=="200"){--%>
<%--						show_msg('操作成功',responseUrl);--%>
<%--					}else{--%>
<%--						show_err_msg('操作失败');--%>
<%--					}--%>

<%--				});--%>
<%--			}--%>
<%--		}--%>

<%--		function updateIsNew(book_id,status) {--%>

<%--			show_loading();--%>
<%--			//ajax请求servlet--%>
<%--		    var url="books/updatenew.action";--%>
<%--			var data={--%>
<%--					book_id:book_id,--%>
<%--					status:status--%>
<%--			};--%>

<%--			$.post(url,data,function(response){--%>
<%--				var jsonData=$.parseJSON(response);--%>
<%--				var result=jsonData.status;--%>

<%--				var responseUrl="books/query.action";--%>
<%--				if(result==200){--%>
<%--					show_msg('操作成功',responseUrl);--%>
<%--				}else{--%>
<%--					show_err_msg('操作失败');--%>
<%--				}--%>

<%--			});--%>

<%--		}--%>

<%--		function updateIsOnline(book_id,status) {--%>

<%--			show_loading();--%>
<%--			//ajax请求servlet--%>
<%--		    var url="books/updateonline.action";--%>
<%--			var data={--%>
<%--					book_id:book_id,--%>
<%--					status:status--%>
<%--			};--%>

<%--			$.post(url,data,function(response){--%>
<%--				var jsonData=$.parseJSON(response);--%>
<%--				var result=jsonData.status;--%>

<%--				var responseUrl="books/query.action";--%>
<%--				if(result==200){--%>
<%--					show_msg('操作成功',responseUrl);--%>
<%--				}else{--%>
<%--					show_err_msg('操作失败');--%>
<%--				}--%>

<%--			});--%>

<%--		}--%>

<%--		function updateIsHot(book_id,status) {--%>

<%--			show_loading();--%>
<%--			//ajax请求servlet--%>
<%--		    var url="books/updatehot.action";--%>
<%--			var data={--%>
<%--					book_id:book_id,--%>
<%--					status:status--%>
<%--			};--%>

<%--			$.post(url,data,function(response){--%>
<%--				var jsonData=$.parseJSON(response);--%>
<%--				var result=jsonData.status;--%>

<%--				var responseUrl="books/query.action";--%>
<%--				if(result==200){--%>
<%--					show_msg('操作成功',responseUrl);--%>
<%--				}else{--%>
<%--					show_err_msg('操作失败');--%>
<%--				}--%>

<%--			});--%>

<%--		}--%>

<%--		$(function() {--%>
<%--			$('.demo-cancel-click').click(function() {--%>
<%--				return false;--%>
<%--			});--%>

<%--			$("#btnUpdate").click(function(){--%>
<%--				var control=$("select[name='control']").val();--%>
<%--				if (control=='') {--%>
<%--					show_err_msg("请选择您要的操作");--%>
<%--				}else{--%>

<%--					var ckValArray=[];--%>
<%--					$("input[name='ck']:checked").each(function(){--%>
<%--						ckValArray.push($(this).val());--%>
<%--					});--%>

<%--					if (ckValArray.length==0) {--%>
<%--						show_err_msg("请选择编号");--%>
<%--					}else{--%>
<%--						show_loading();--%>

<%--						var bookIds=ckValArray.join(",");--%>
<%--						var url="books/updatestatus.action";--%>
<%--						var data={--%>
<%--								control:control,--%>
<%--								bookIds:bookIds--%>
<%--						};--%>

<%--						$.post(url,data,function(response){--%>
<%--							var jsonData=$.parseJSON(response);--%>
<%--							var result=jsonData.status;--%>

<%--							var responseUrl="books/query.action";--%>
<%--							if(result==200){--%>
<%--								show_msg('操作成功',responseUrl);--%>
<%--							}else{--%>
<%--								show_err_msg('操作失败');--%>
<%--							}--%>

<%--						});--%>

<%--					}--%>

<%--				}--%>
<%--			});--%>

<%--		});--%>
<%--	</script>--%>





</body>
</html>